<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<title>修改密码</title>
	<link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
	<link rel="stylesheet" href="/static/include/css/style.css">
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-user-resetPwd">
			<input name="userId"  type="hidden"  th:value="${user.userId}" />
			<div class="form-group">
				<label class="col-sm-3 control-label">登录名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" readonly="true" name="loginname" th:value="${user.loginname}"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">输入密码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="password" name="password" id="password" maxlength="20">
				</div>
			</div>
		</form>
	</div>
	<script src="/static/include/js/footer.js"></script>
	<script src="/static/js/algorithm/aes.js"></script>
	<script src="/static/js/algorithm/mode-ecb-min.js"></script>
	<script src="/static/js/util/AESUtil.js"></script>
	<script type="text/javascript">
		$("#form-user-resetPwd").validate({
			rules:{
				password:{
					required:true,
					minlength: 6,
					maxlength: 20
				},
			},
			messages : {
				password : {
					required : "请输入您的密码",
					minlength : "密码不能小于6个字符",
					maxlength : "密码不能多于20个字符",
				}
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$('#password').val(algorithmRequestParam($('#password').val()))
	        	$.operate.save(ctx + "admin/user/resetPwd", $('#form-user-resetPwd').serialize());
	        }
	    }
	</script>
</body>

</html>
